﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace Database.Models
{
    [Table("PhieuDieuTraCoSo")]
    public class PhieuDieuTraCoSo : BaseModel
    {
        public PhieuDieuTraCoSo()
        {
            PhuongTiens = new HashSet<PhuongTienCoSo>();
        }

        public int Id { get; set; }

        public string TenCoSo { get; set; }
        public string Email { get; set; }
        public string Website { get; set; }
        public string NamThanhLap { get; set; }
        public string DiaChi_So { get; set; }
        public string DiaChi_Duong { get; set; }
        public string DiaChi_PhuongOrXa { get; set; }
        public string DiaChi_QuanOrHuyen { get; set; }
        public string KhuOrCumCongNghiep { get; set; }
        public string NguoiDungDauCoSo { get; set; }
        public string DienThoai { get; set; }
        public int? CoQuanQuanLyID { get; set; }
        public DateTime? NgayLapPhieu { get; set; }
        public int? CanBoQuanLyID { get; set; }
        public int? PhongID { get; set; }
        public int? DoiID { get; set; }
        public int? CapQuanLyHanhChinhID { get; set; }
        public int? HinhThucDauTuID { get; set; }
        public int? ThanhPhanKinhTeID { get; set; }
        public int? NganhLinhVucID { get; set; }
        public int? LoaiHinhHoatDongID { get; set; }
        public int? ThamDuyetPCCCID { get; set; }

        //public virtual CanBoQuanLy CanBoQuanLy { get; set; }
        //public virtual CapQuanLyHanhChinh CapQuanLyHanhChinh { get; set; }
        //public virtual CoQuanQuanLyPCCC CoQuanQuanLyPCCC { get; set; }
        public virtual Doi Doi { get; set; }
        public virtual HinhThucDauTuCoSo HinhThucDauTu { get; set; }
        public virtual LoaiHinhHoatDongCoSo LoaiHinhHoatDong { get; set; }
        
        public virtual NganhLinhVucCoSo NganhLinhVuc { get; set; }


        public ICollection<TuyenTruyenHuanLuyen> TuyenTruyenHuanLuyens { get; set; }

        public ICollection<KiemTraAnToan> KiemTraAnToans { get; set; }
        
        public ICollection<ThamDuyetPCCC> ThamDuyetPcccs { get; set; }
        
        public virtual ThanhPhanKinhTeCoSo ThanhPhanKinhTe { get; set; }
        public ICollection<PhuongTienCoSo> PhuongTiens { get; set; }
        public ICollection<NguonNuoc> NguonNuocs { get; set; }
        public ICollection<XuLyViPham> XuLyViPham { get; set; }
    }
}